<?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

// Route::get('/', function (Request $request) {
// 	if(Auth::check())
// 	{
// 		$user = Auth::user();
// 		$status = $user -> status;
// 		if($status == '0')
// 		{	
// 			$request -> session() -> flush();
// 			return view('auth.login');
// 		}
// 	}
//     return view('home.index');
// });
// 登录
Route::get('auth/login', 'Auth\AuthController@getLogin');
Route::post('auth/login', 'Auth\AuthController@postLogin');
Route::get('auth/logout', 'Auth\AuthController@getLogout');
// 注册
Route::get('auth/register', 'Auth\AuthController@getRegister');
Route::post('auth/register', 'Auth\AuthController@postRegister');

	/*省级城市*/
Route::post('/getCity','CityController@doProvince');
	/*市级城市*/
Route::post('/Municipal','CityController@doMunicipal');
	/*县级城市*/
Route::post('/County','CityController@doCounty');

	/*省级城市*/
Route::post('/getCityy','FishController@doProvince');
	/*市级城市*/
Route::post('/Municipall','FishController@doMunicipal');
	/*县级城市*/
Route::post('/Countyy','FishController@doCounty');

//后台主页
Route::controller('/admin','AdminController');
//主页控制器
Route::controller('/','UserController');
// Route::controller('/ponds','UserController');
Route::controller('/vcode','UserController');
Route::controller('/testvcode','UserController');










// Route::get('/yiji',function(){
// 	return view('home.yiji');
// });

// Route::get('/erji',function(){
// 	return view('home.erji');
// });



// Route::get('/introduction',function(){
// 	return view('home.introduction');
// });

// Route::get('/login',function(){
// 	return view('home.login');
// });

// Route::get('shopcart',function(){
// 	return view('home.shopcart');
// });

// Route::get('registered',function(){
// 	return view('home.registered');
// });

// Route::get('pay',function(){
// 	return view('home.pay');
// });

// Route::get('success',function(){
// 	return view('home.success');
// });

// Route::get('center',function(){
// 	return view('home.center');
// });

// Route::get('information',function(){
// 	return view('home.information');
// });

// Route::get('safety',function(){
// 	return view('home.safety');
// });

// Route::get('address',function(){
// 	return view('home.address');
// });

// Route::get('order',function(){
// 	return view('home.order');
// });

// Route::get('change',function(){
// 	return view('home.change');
// });

// Route::get('coupon',function(){
// 	return view('home.coupon');
// });

// Route::get('bonus',function(){
// 	return view('home.bonus');
// });

// Route::get('bill',function(){
// 	return view('home.bill');
// });

// Route::get('collection',function(){
// 	return view('home.collection');
// });

// Route::get('foot',function(){
// 	return view('home.foot');
// });

// Route::get('commentist',function(){
// 	return view('home.commentist');
// });

// Route::get('comment',function(){
// 	return view('home.comment');
// });

// Route::get('news',function(){
// 	return view('home.news');
// });

// Route::get('password',function(){
// 	return view('home.password');
// });

// Route::get('setpay',function(){
// 	return view('home.setpay');
// });

// Route::get('bindphone',function(){
// 	return view('home.bindphone');
// });

// Route::get('email',function(){
// 	return view('home.email');
// });

// Route::get('idcard',function(){
// 	return view('home.idcard');
// });

// Route::get('question',function(){
// 	return view('home.question');
// });

// Route::get('blog',function(){
// 	return view('home.blog');
// });

// Route::get('logistics',function(){
// 	return view('home.logistics');
// });

// Route::get('record',function(){
// 	return view('home.record');
// });

/*二手车*/
// Route::get('wymc',function(){
// 	return view('ershouche.wymc');
// });

// Route::get('ershoucheshouye',function(){
// 	return view('ershouche.index');
// });

// Route::get('list',function(){
// 	return view('ershouche.list');
// });

// Route::get('chexiangqing',function(){
// 	return view('ershouche.xiangqing');
// });

// Route::get('er',function(){
// 	return view('ershouche.ershouchefuwu');
// });

// Route::get('ershou',function(){
// 	return view('ershouche.ershouchefuwushuoming');
// });
// Route::get('/home/registered','LoginController@registered');
// Route::post('/login/create','LoginController@create');

// Route::post('/login/create','LoginController@create');
//后台


